package com.mt.api.modules.manager.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mt.api.modules.domain.AppSuggest;
import com.mt.api.modules.manager.ISuggestManager;
import com.mt.api.modules.mapper.AppSuggestMapper;
import org.springframework.stereotype.Component;

/**
 * @Author: plover
 * @Date: 2022-01-02
 * @Description:
 */
@Component
public class SuggestManagerImpl extends ServiceImpl<AppSuggestMapper, AppSuggest> implements ISuggestManager {

    @Override
    public int saveSuggest(AppSuggest suggest) {
        return baseMapper.insert(suggest);
    }

    @Override
    public int updateSuggest(AppSuggest suggest) {
        return baseMapper.updateById(suggest);
    }

    @Override
    public AppSuggest getSuggestById(Long id) {
        return baseMapper.selectById(id);
    }

}
